package net.toocruel.iqismart.utils;

import org.apache.commons.lang3.ArrayUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.BeansException;

/**
 * @Description
 * @Auther sty
 * @createTime 2018/5/9 上午10:27
 */
public class MyBeanUtils{
    public static void copyProperties(Object source, Object target, String... ignoreProperties) throws BeansException {
        BeanUtils.copyProperties(source, target, ArrayUtils.addAll(ignoreProperties,new String[]{"id", "createdAt"}));
    }
}
